package com.example.mychat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mychat.entity.Likes;
import org.apache.ibatis.annotations.Select;

public interface LikesMapper extends BaseMapper<Likes> {
    @Select("select beLikedName from likes where username=#{username} and thumbNum in " +
            "(select max(thumbNum) from likes where username=#{username})")
    String selectMaxBeLikeName(String username);
}
